None
# Create a temporary directory to hold notebook output, and change the working directory to that directory.
from tempfile import TemporaryDirectory
import os
import shutil
data_dir = TemporaryDirectory()
os.chdir(data_dir.name)
import os
if 'CRDS_CACHE_TYPE' in os.environ:
if os.environ['CRDS_CACHE_TYPE'] == 'local':
os.environ['CRDS_PATH'] = os.path.join(os.environ['HOME'], 'crds', 'cache')
elif os.path.isdir(os.environ['CRDS_CACHE_TYPE']):
os.environ['CRDS_PATH'] = os.environ['CRDS_CACHE_TYPE']
print('CRDS cache location: {}'.format(os.environ['CRDS_PATH']))
CRDS cache location: /grp/crds/cache
The library imports relevant to this notebook are aready taken care of by importing PTT.
NOTE: This notebook assumes that the pipeline version to be tested is already installed and its environment is activated.
To be able to run this notebook you need to install nptt.
If all goes well you will be able to import PTT.
import warnings
import psutil
from astropy.io import fits
# Only print a DeprecationWarning the first time it shows up, not every time.
with warnings.catch_warnings():
warnings.simplefilter("once", category=DeprecationWarning)
import jwst
from jwst.pipeline.calwebb_detector1 import Detector1Pipeline
from jwst.assign_wcs.assign_wcs_step import AssignWcsStep
# The latest version of NPTT is installed in the requirements text file at:
# /jwst_validation_notebooks/environment.yml
# import NPTT
import nirspec_pipe_testing_tool as nptt
# To get data from Artifactory
from ci_watson.artifactory_helpers import get_bigdata
# Make sure that the version used is the right one
pipeline_version = jwst.__version__
nptt_version = nptt.__version__
print("Using jwst pipeline version: ", pipeline_version)
print("Using NPTT version: ", nptt_version)
Using jwst pipeline version: 1.8.2 Using NPTT version: 2.0.1
We compared Institute's pipeline product of the assign_wcs step with our benchmark files, or with the intermediary products from the ESA pipeline, which is completely independent from the Institute's. The comparison file is referred to as 'truth'. We calculated the relative difference and expected it to be equal to or less than computer precision: relative_difference = absolute_value( (Truth - ST)/Truth ) <= 1x10^-7.
For the test to be considered PASSED, every single slit (for FS data), slitlet (for MOS data) or slice (for IFU data) in the input file has to pass. If there is any failure, the whole test will be considered as FAILED.
The code for this test for Fixed Slits (FS) can be obtained from: https://github.com/spacetelescope/nirspec_pipe_testing_tool/blob/master/nirspec_pipe_testing_tool/calwebb_spec2_pytests/auxiliary_code/compare_wcs_fs.py. For Multi Object Spectroscopy (MOS), the code is in the same repository but is named compare_wcs_mos.py, and for Integral Field Unit (IFU) data, the test is named compare_wcs_ifu.py.
The input file is defined in the variable input_file (see section Testing Data Set and Variable Setup).
Step description: https://jwst-pipeline.readthedocs.io/en/latest/jwst/assign_wcs/main.html
Pipeline code: https://github.com/spacetelescope/jwst/tree/master/jwst/assign_wcs
If the test PASSED this means that all slits, slitlets, or slices individually passed the test. However, if ony one individual slit (for FS data), slitlet (for MOS data) or slice (for IFU data) test failed, the whole test will be reported as FAILED.### Calibration WG Requested Algorithm:
A short description and link to the page: https://outerspace.stsci.edu/display/JWSTCC/Vanilla+Spectral+GWCS+Information
Acronymns used un this notebook:
pipeline: calibration pipeline
spec2: spectroscopic calibration pipeline level 2b
PTT: NIRSpec pipeline testing tool (https://github.com/spacetelescope/nirspec_pipe_testing_tool)
The pipeline can be run from the command line in two variants: full or per step.
Tu run the spec2 pipeline in full use the command:
$ strun jwst.pipeline.Spec2Pipeline jwtest_rate.fits
Tu only run the assign_wcs step, use the command:
$ strun jwst.assign_wcs.AssignWcsStep jwtest_rate.fits
NIRSpec TA data will be run through the cal_detector1 and the imaging2 pipelines. The imaging pipeline can be run with the following fommand:
$ strun jwst.pipeline.Image2Pipeline jwtest_rate.fits
These options are also callable from a script with the testing environment active. The Python call for running the pipeline in full or by step are:
$\gt$ from jwst.pipeline.calwebb_spec2 import Spec2Pipeline
$\gt$ Spec2Pipeline.call(jwtest_rate.fits)
or
$\gt$ from jwst.assign_wcs.assign_wcs_step import AssignWcsStep
$\gt$ AssignWcsStep.call(jwtest_rate.fits)
For the imaging pipeline the call would be as follows:
$\gt$ from jwst.pipeline.calwebb_image2 import Image2Pipeline
$\gt$ Image2Pipeline.call(jwtest_rate.fits)
NPTT can run the spec2 pipeline either in full or per step, as well as the imaging pipeline in full. In this notebook we will use NPTT to run the pipeline and the validation tests. To run NPTT, follow the directions in the corresponding repo page.
All testing data is from the CV3 campaign. We chose these files because this is our most complete data set, i.e. all modes and filter-grating combinations.
Data used was for testing:
testing_data = {'fs_prism_clear':{
'uncal_file_nrs1': 'fs_prism_nrs1_uncal.fits',
'uncal_file_nrs2': 'fs_prism_nrs2_uncal.fits',
'truth_file_nrs1': 'fs_prism_nrs1_assign_wcs_truth.fits',
'truth_file_nrs2': 'fs_prism_nrs2_assign_wcs_truth.fits',
'msa_shutter_config': None }
}
# define function to pull data from Artifactory
def get_artifactory_file(data_set_dict, detector):
"""This function creates a list with all the files needed per detector to run the test.
Args:
data_set_dict: dictionary, contains inputs for a specific mode and configuration
detector: string, either nrs1 or nrs2
Returns:
data: list, contains all files needed to run test
"""
files2obtain = ['uncal_file_nrs1', 'truth_file_nrs1', 'msa_shutter_config']
data = []
for file in files2obtain:
data_file = None
try:
if '_nrs' in file and '2' in detector:
file = file.replace('_nrs1', '_nrs2')
data_file = get_bigdata('jwst_validation_notebooks',
'validation_data',
'nirspec_data',
data_set_dict[file])
except TypeError:
data.append(None)
continue
data.append(data_file)
return data
# Set common NPTT switches for this test and run the test for both detectors for each data set
# define benchmark (or 'truth') file
compare_assign_wcs_and_extract_2d_with_esa = False
# accepted threshold difference with respect to benchmark files
threshold_diff = 1e-7
# other variables
esa_files_path, raw_data_root_file = None, None
save_figs = False
show_figs = True
detectors = ['nrs1', 'nrs2']
results_dict = {}
# Test the FS data for PRISM
for mode_config, data_set_dict in testing_data.items():
if 'mos' in mode_config or 'ifu' in mode_config:
continue
if 'bots' in mode_config or 'allslits' in mode_config:
continue
print('Fixed slit mode: ', mode_config)
for det in detectors:
print('Testing files for detector: ', det)
data = get_artifactory_file(data_set_dict, det)
uncal_file, truth_file, msa_shutter_config = data
uncal_basename = os.path.basename(uncal_file)
print('Working with uncal_file: ', uncal_basename)
# Make sure that there is an assign_wcs truth product to compare to, else skip this data set
if truth_file is None:
print('No truth file to compare to for this detector, skipping this data set. \n')
skip_file = True
# Make sure these keywords are properly set
filt = fits.getval(uncal_file, 'FILTER')
if 'OPAQUE' in filt or 'allslits' in uncal_basename.lower():
if 'clear' in uncal_basename.lower():
filt = 'CLEAR'
else:
l = uncal_basename.split("_")
for li in l:
if 'lp' in li:
filt = li.upper()
break
fits.setval(uncal_file, 'FILTER', value=filt)
print('Filter = ', filt)
if 'bots' in uncal_basename.lower():
fits.setval(uncal_file, 'TSOVISIT', value=True)
fits.setval(uncal_file, 'FXD_SLIT', value='S1600A1')
elif 'fs' in uncal_basename.lower():
fits.setval(uncal_file, 'FXD_SLIT', value='S200A1')
# Run the stage 1 pipeline
print('Running detector1 pipeline...')
rate_object = Detector1Pipeline.call(uncal_file)
# Run the stage 2 pipeline steps
print('Running spec2 pipeline...')
try:
assign_wcs_object = AssignWcsStep.call(rate_object)
skip_file = False
except:
print("No open slits fall on detector ", det)
print("Skipping test for this file. \n")
skip_file = True
if not skip_file:
# Run the validation test
%matplotlib inline
print('Running test for FS...')
result, _ = nptt.calwebb_spec2_pytests.auxiliary_code.compare_wcs_fs.compare_wcs(
assign_wcs_object,
truth_file=truth_file,
esa_files_path=esa_files_path,
show_figs=show_figs,
save_figs=save_figs,
threshold_diff=threshold_diff,
raw_data_root_file=raw_data_root_file,
output_directory=None)
else:
result = 'skipped'
# Did the test passed
print("Did FS PRISM assign_wcs validation test passed? ", result, "\n\n")
rd = {uncal_basename: result}
results_dict.update(rd)
Fixed slit mode: fs_prism_clear Testing files for detector: nrs1 Working with uncal_file: fs_prism_nrs1_uncal.fits Filter = CLEAR Running detector1 pipeline...
2022-12-02 14:54:17,060 - stpipe - INFO - PARS-DETECTOR1PIPELINE parameters found: /grp/crds/cache/references/jwst/jwst_nirspec_pars-detector1pipeline_0004.asdf
2022-12-02 14:54:17,085 - stpipe.Detector1Pipeline - INFO - Detector1Pipeline instance created.
2022-12-02 14:54:17,087 - stpipe.Detector1Pipeline.group_scale - INFO - GroupScaleStep instance created.
2022-12-02 14:54:17,089 - stpipe.Detector1Pipeline.dq_init - INFO - DQInitStep instance created.
2022-12-02 14:54:17,090 - stpipe.Detector1Pipeline.saturation - INFO - SaturationStep instance created.
2022-12-02 14:54:17,091 - stpipe.Detector1Pipeline.ipc - INFO - IPCStep instance created.
2022-12-02 14:54:17,093 - stpipe.Detector1Pipeline.superbias - INFO - SuperBiasStep instance created.
2022-12-02 14:54:17,094 - stpipe.Detector1Pipeline.refpix - INFO - RefPixStep instance created.
2022-12-02 14:54:17,095 - stpipe.Detector1Pipeline.rscd - INFO - RscdStep instance created.
2022-12-02 14:54:17,096 - stpipe.Detector1Pipeline.firstframe - INFO - FirstFrameStep instance created.
2022-12-02 14:54:17,097 - stpipe.Detector1Pipeline.lastframe - INFO - LastFrameStep instance created.
2022-12-02 14:54:17,098 - stpipe.Detector1Pipeline.linearity - INFO - LinearityStep instance created.
2022-12-02 14:54:17,099 - stpipe.Detector1Pipeline.dark_current - INFO - DarkCurrentStep instance created.
2022-12-02 14:54:17,100 - stpipe.Detector1Pipeline.reset - INFO - ResetStep instance created.
2022-12-02 14:54:17,101 - stpipe.Detector1Pipeline.persistence - INFO - PersistenceStep instance created.
2022-12-02 14:54:17,103 - stpipe.Detector1Pipeline.jump - INFO - JumpStep instance created.
2022-12-02 14:54:17,104 - stpipe.Detector1Pipeline.ramp_fit - INFO - RampFitStep instance created.
2022-12-02 14:54:17,105 - stpipe.Detector1Pipeline.gain_scale - INFO - GainScaleStep instance created.
2022-12-02 14:54:17,328 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline running with args ('/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/fs_prism_nrs1_uncal.fits',).
2022-12-02 14:54:17,340 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'save_calibrated_ramp': False, 'steps': {'group_scale': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'dq_init': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'saturation': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'n_pix_grow_sat': 1}, 'ipc': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': True, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'superbias': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'refpix': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'odd_even_columns': True, 'use_side_ref_pixels': True, 'side_smoothing_length': 11, 'side_gain': 1.0, 'odd_even_rows': True}, 'rscd': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'type': 'baseline'}, 'firstframe': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'lastframe': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'linearity': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'dark_current': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'dark_output': None}, 'reset': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'persistence': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'input_trapsfilled': '', 'flag_pers_cutoff': 40.0, 'save_persistence': False, 'save_trapsfilled': True}, 'jump': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'rejection_threshold': 4.0, 'three_group_rejection_threshold': 6.0, 'four_group_rejection_threshold': 5.0, 'maximum_cores': 'none', 'flag_4_neighbors': True, 'max_jump_to_flag_neighbors': 1000.0, 'min_jump_to_flag_neighbors': 10.0, 'after_jump_flag_dn1': 0.0, 'after_jump_flag_time1': 0.0, 'after_jump_flag_dn2': 0.0, 'after_jump_flag_time2': 0.0, 'min_sat_area': 1.0, 'min_jump_area': 5.0, 'expand_factor': 2.0, 'use_ellipses': False, 'sat_required_snowball': True, 'expand_large_events': False}, 'ramp_fit': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'int_name': '', 'save_opt': False, 'opt_name': '', 'suppress_one_group': True, 'maximum_cores': 'none'}, 'gain_scale': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}}}
2022-12-02 14:54:17,539 - stpipe.Detector1Pipeline - INFO - Prefetching reference files for dataset: 'fs_prism_nrs1_uncal.fits' reftypes = ['dark', 'gain', 'linearity', 'mask', 'persat', 'readnoise', 'refpix', 'reset', 'rscd', 'saturation', 'superbias', 'trapdensity', 'trappars']
2022-12-02 14:54:17,549 - stpipe.Detector1Pipeline - INFO - Prefetch for DARK reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_dark_0086.fits'.
2022-12-02 14:54:17,551 - stpipe.Detector1Pipeline - INFO - Prefetch for GAIN reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_gain_0019.fits'.
2022-12-02 14:54:17,553 - stpipe.Detector1Pipeline - INFO - Prefetch for LINEARITY reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_linearity_0018.fits'.
2022-12-02 14:54:17,555 - stpipe.Detector1Pipeline - INFO - Prefetch for MASK reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_mask_0010.fits'.
2022-12-02 14:54:17,557 - stpipe.Detector1Pipeline - INFO - Prefetch for PERSAT reference file is 'N/A'.
2022-12-02 14:54:17,557 - stpipe.Detector1Pipeline - INFO - Prefetch for READNOISE reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0018.fits'.
2022-12-02 14:54:17,559 - stpipe.Detector1Pipeline - INFO - Prefetch for REFPIX reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_refpix_0022.fits'.
2022-12-02 14:54:17,561 - stpipe.Detector1Pipeline - INFO - Prefetch for RESET reference file is 'N/A'.
2022-12-02 14:54:17,562 - stpipe.Detector1Pipeline - INFO - Prefetch for RSCD reference file is 'N/A'.
2022-12-02 14:54:17,562 - stpipe.Detector1Pipeline - INFO - Prefetch for SATURATION reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_saturation_0020.fits'.
2022-12-02 14:54:17,564 - stpipe.Detector1Pipeline - INFO - Prefetch for SUPERBIAS reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_superbias_0113.fits'.
2022-12-02 14:54:17,566 - stpipe.Detector1Pipeline - INFO - Prefetch for TRAPDENSITY reference file is 'N/A'.
2022-12-02 14:54:17,567 - stpipe.Detector1Pipeline - INFO - Prefetch for TRAPPARS reference file is 'N/A'.
2022-12-02 14:54:17,567 - stpipe.Detector1Pipeline - INFO - Starting calwebb_detector1 ...
2022-12-02 14:54:18,088 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:18,090 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:54:18,257 - stpipe.Detector1Pipeline.group_scale - INFO - NFRAMES and FRMDIVSR are equal; correction not needed
2022-12-02 14:54:18,258 - stpipe.Detector1Pipeline.group_scale - INFO - Step will be skipped
2022-12-02 14:54:18,261 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale done
2022-12-02 14:54:18,499 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:18,501 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:54:18,526 - stpipe.Detector1Pipeline.dq_init - INFO - Using MASK reference file /grp/crds/cache/references/jwst/jwst_nirspec_mask_0010.fits
2022-12-02 14:54:18,949 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init done
2022-12-02 14:54:19,207 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:19,209 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'n_pix_grow_sat': 1}
2022-12-02 14:54:19,236 - stpipe.Detector1Pipeline.saturation - INFO - Using SATURATION reference file /grp/crds/cache/references/jwst/jwst_nirspec_saturation_0020.fits
2022-12-02 14:54:20,276 - stpipe.Detector1Pipeline.saturation - INFO - Detected 49730 saturated pixels
2022-12-02 14:54:20,314 - stpipe.Detector1Pipeline.saturation - INFO - Detected 0 A/D floor pixels
2022-12-02 14:54:20,344 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation done
2022-12-02 14:54:20,576 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:20,578 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': True, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:54:20,579 - stpipe.Detector1Pipeline.ipc - INFO - Step skipped.
2022-12-02 14:54:20,582 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc done
2022-12-02 14:54:20,811 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:20,813 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:54:20,854 - stpipe.Detector1Pipeline.superbias - INFO - Using SUPERBIAS reference file /grp/crds/cache/references/jwst/jwst_nirspec_superbias_0113.fits
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stdatamodels/validate.py:38: ValidationWarning: While validating meta.exposure.readpatt the following error occurred:
'ALLIRS2' is not one of ['ACQ1', 'ACQ2', 'BRIGHT1', 'BRIGHT2', 'DEEP2', 'DEEP8', 'FAST', 'FASTGRPAVG', 'FASTGRPAVG8', 'FASTGRPAVG16', 'FASTGRPAVG32', 'FASTGRPAVG64', 'FASTR1', 'FASTR100', 'FGS', 'FGS60', 'FGS8370', 'FGS840', 'FGSRAPID', 'FINEGUIDE', 'ID', 'MEDIUM2', 'MEDIUM8', 'NIS', 'NISRAPID', 'NRS', 'NRSIRS2', 'NRSN16R4', 'NRSN32R8', 'NRSN8R2', 'NRSRAPID', 'NRSIRS2RAPID', 'NRSRAPIDD1', 'NRSRAPIDD2', 'NRSRAPIDD6', 'NRSSLOW', 'RAPID', 'SHALLOW2', 'SHALLOW4', 'SLOW', 'SLOWR1', 'TRACK', 'ANY', 'N/A']
Failed validating 'enum' in schema:
OrderedDict([('title', 'Readout pattern'),
('type', 'string'),
('enum',
['ACQ1',
'ACQ2',
'BRIGHT1',
'BRIGHT2',
'DEEP2',
'DEEP8',
'FAST',
'FASTGRPAVG',
'FASTGRPAVG8',
'FASTGRPAVG16',
'FASTGRPAVG32',
'FASTGRPAVG64',
'FASTR1',
'FASTR100',
'FGS',
'FGS60',
'FGS8370',
'FGS840',
'FGSRAPID',
'FINEGUIDE',
'ID',
'MEDIUM2',
'MEDIUM8',
'NIS',
'NISRAPID',
'NRS',
'NRSIRS2',
'NRSN16R4',
'NRSN32R8',
'NRSN8R2',
'NRSRAPID',
'NRSIRS2RAPID',
'NRSRAPIDD1',
'NRSRAPIDD2',
'NRSRAPIDD6',
'NRSSLOW',
'RAPID',
'SHALLOW2',
'SHALLOW4',
'SLOW',
'SLOWR1',
'TRACK',
'ANY',
'N/A']),
('fits_ke ...
warnings.warn(errmsg, ValidationWarning)
2022-12-02 14:54:21,331 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias done
2022-12-02 14:54:21,483 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:21,485 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'odd_even_columns': True, 'use_side_ref_pixels': True, 'side_smoothing_length': 11, 'side_gain': 1.0, 'odd_even_rows': True}
2022-12-02 14:54:21,510 - stpipe.Detector1Pipeline.refpix - INFO - Using refpix reference file: /grp/crds/cache/references/jwst/jwst_nirspec_refpix_0022.fits
2022-12-02 14:54:21,994 - stpipe.Detector1Pipeline.refpix - INFO - Working on integration 1
2022-12-02 14:54:37,984 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix done
2022-12-02 14:54:38,328 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:38,330 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:54:38,357 - stpipe.Detector1Pipeline.linearity - INFO - Using Linearity reference file /grp/crds/cache/references/jwst/jwst_nirspec_linearity_0018.fits
2022-12-02 14:54:39,313 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity done
2022-12-02 14:54:39,555 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:39,557 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'dark_output': None}
2022-12-02 14:54:39,650 - stpipe.Detector1Pipeline.dark_current - INFO - Using DARK reference file /grp/crds/cache/references/jwst/jwst_nirspec_dark_0086.fits
2022-12-02 14:54:43,079 - stpipe.Detector1Pipeline.dark_current - INFO - Science data nints=1, ngroups=4, nframes=1, groupgap=0
2022-12-02 14:54:43,081 - stpipe.Detector1Pipeline.dark_current - INFO - Dark data nints=1, ngroups=65, nframes=1, groupgap=0
2022-12-02 14:54:43,765 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current done
2022-12-02 14:54:43,966 - stpipe.Detector1Pipeline.jump - INFO - Step jump running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:43,968 - stpipe.Detector1Pipeline.jump - INFO - Step jump parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'rejection_threshold': 4.0, 'three_group_rejection_threshold': 6.0, 'four_group_rejection_threshold': 5.0, 'maximum_cores': 'none', 'flag_4_neighbors': True, 'max_jump_to_flag_neighbors': 1000.0, 'min_jump_to_flag_neighbors': 10.0, 'after_jump_flag_dn1': 0.0, 'after_jump_flag_time1': 0.0, 'after_jump_flag_dn2': 0.0, 'after_jump_flag_time2': 0.0, 'min_sat_area': 1.0, 'min_jump_area': 5.0, 'expand_factor': 2.0, 'use_ellipses': False, 'sat_required_snowball': True, 'expand_large_events': False}
2022-12-02 14:54:44,009 - stpipe.Detector1Pipeline.jump - INFO - CR rejection threshold = 4 sigma
2022-12-02 14:54:44,060 - stpipe.Detector1Pipeline.jump - INFO - Using GAIN reference file: /grp/crds/cache/references/jwst/jwst_nirspec_gain_0019.fits
2022-12-02 14:54:44,167 - stpipe.Detector1Pipeline.jump - INFO - Using READNOISE reference file: /grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0018.fits
2022-12-02 14:54:44,496 - stpipe.Detector1Pipeline.jump - INFO - Executing two-point difference method
2022-12-02 14:54:44,539 - stpipe.Detector1Pipeline.jump - INFO - Working on integration 1:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/twopoint_difference.py:154: RuntimeWarning: All-NaN slice encountered
max_ratio = np.nanmax(ratio, axis=0)
2022-12-02 14:54:46,071 - stpipe.Detector1Pipeline.jump - INFO - From highest outlier, two-point found 0 pixels with at least one CR from five or more groups.
2022-12-02 14:54:46,857 - stpipe.Detector1Pipeline.jump - INFO - Total elapsed time = 2.36064 sec
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:302: RuntimeWarning: invalid value encountered in divide
data /= gain_2d
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:303: RuntimeWarning: invalid value encountered in divide
err /= gain_2d
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:304: RuntimeWarning: invalid value encountered in divide
readnoise_2d /= gain_2d
2022-12-02 14:54:46,928 - stpipe.Detector1Pipeline.jump - INFO - The execution time in seconds: 2.918813
2022-12-02 14:54:46,934 - stpipe.Detector1Pipeline.jump - INFO - Step jump done
2022-12-02 14:54:47,071 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:54:47,072 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'int_name': '', 'save_opt': False, 'opt_name': '', 'suppress_one_group': True, 'maximum_cores': 'none'}
2022-12-02 14:54:47,164 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using READNOISE reference file: /grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0018.fits
2022-12-02 14:54:47,164 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using GAIN reference file: /grp/crds/cache/references/jwst/jwst_nirspec_gain_0019.fits
2022-12-02 14:54:47,347 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using algorithm = ols
2022-12-02 14:54:47,348 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using weighting = optimal
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/ramp_fitting/ols_fit.py:1089: RuntimeWarning: invalid value encountered in multiply
var_p4[num_int, :, :, :] *= (segs_4[num_int, :, :, :] > 0)
2022-12-02 14:55:02,834 - stpipe.Detector1Pipeline.ramp_fit - INFO - Number of groups per integration: 4
2022-12-02 14:55:02,835 - stpipe.Detector1Pipeline.ramp_fit - INFO - Number of integrations: 1
2022-12-02 14:55:03,030 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit done
2022-12-02 14:55:03,158 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale running with args (<ImageModel(2048, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:55:03,160 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': 'gain_scale', 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:03,240 - stpipe.Detector1Pipeline.gain_scale - INFO - GAINFACT not found in gain reference file
2022-12-02 14:55:03,241 - stpipe.Detector1Pipeline.gain_scale - INFO - Step will be skipped
2022-12-02 14:55:03,245 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale done
2022-12-02 14:55:03,367 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale running with args (<CubeModel(1, 2048, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:55:03,369 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': 'gain_scaleints', 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:03,454 - stpipe.Detector1Pipeline.gain_scale - INFO - GAINFACT not found in gain reference file
2022-12-02 14:55:03,455 - stpipe.Detector1Pipeline.gain_scale - INFO - Step will be skipped
2022-12-02 14:55:03,460 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale done
2022-12-02 14:55:03,461 - stpipe.Detector1Pipeline - INFO - ... ending calwebb_detector1
2022-12-02 14:55:03,462 - stpipe.Detector1Pipeline - INFO - Results used CRDS context: jwst_1019.pmap
2022-12-02 14:55:03,462 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline done
2022-12-02 14:55:03,473 - stpipe.AssignWcsStep - INFO - AssignWcsStep instance created.
2022-12-02 14:55:03,603 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep running with args (<ImageModel(2048, 2048) from fs_prism_nrs1_uncal.fits>,).
2022-12-02 14:55:03,604 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'sip_approx': True, 'sip_max_pix_error': 0.1, 'sip_degree': None, 'sip_max_inv_pix_error': 0.1, 'sip_inv_degree': None, 'sip_npoints': 12, 'slit_y_low': -0.55, 'slit_y_high': 0.55}
Running spec2 pipeline...
2022-12-02 14:55:03,821 - stpipe.AssignWcsStep - INFO - gwa_ytilt is 0.0332140289247036 deg
2022-12-02 14:55:03,822 - stpipe.AssignWcsStep - INFO - gwa_xtilt is 0.3367482721805573 deg
2022-12-02 14:55:03,823 - stpipe.AssignWcsStep - INFO - theta_y correction: -1.0907214098475986e-05 deg
2022-12-02 14:55:03,825 - stpipe.AssignWcsStep - INFO - theta_x correction: 0.0 deg
2022-12-02 14:55:04,316 - stpipe.AssignWcsStep - INFO - Removing slit S200B1 from the list of open slits because the WCS bounding_box is completely outside the detector.
2022-12-02 14:55:04,317 - stpipe.AssignWcsStep - INFO - Slits projected on detector NRS1: ['S200A1', 'S200A2', 'S400A1', 'S1600A1']
2022-12-02 14:55:04,318 - stpipe.AssignWcsStep - INFO - Computing WCS for 4 open slitlets
2022-12-02 14:55:04,379 - stpipe.AssignWcsStep - INFO - gwa_ytilt is 0.0332140289247036 deg
2022-12-02 14:55:04,380 - stpipe.AssignWcsStep - INFO - gwa_xtilt is 0.3367482721805573 deg
2022-12-02 14:55:04,381 - stpipe.AssignWcsStep - INFO - theta_y correction: -1.0907214098475986e-05 deg
2022-12-02 14:55:04,384 - stpipe.AssignWcsStep - INFO - theta_x correction: 0.0 deg
2022-12-02 14:55:04,403 - stpipe.AssignWcsStep - INFO - SPORDER= 0, wrange=[6e-07, 5.3e-06]
2022-12-02 14:55:04,592 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 1
2022-12-02 14:55:04,593 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 2
2022-12-02 14:55:04,594 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 3
2022-12-02 14:55:04,595 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 4
2022-12-02 14:55:04,595 - stpipe.AssignWcsStep - INFO - There are 4 open slits in quadrant 5
2022-12-02 14:55:04,816 - stpipe.AssignWcsStep - INFO - Created a NIRSPEC nrs_fixedslit pipeline with references {'distortion': None, 'filteroffset': None, 'specwcs': None, 'regions': None, 'wavelengthrange': '/grp/crds/cache/references/jwst/jwst_nirspec_wavelengthrange_0004.asdf', 'camera': '/grp/crds/cache/references/jwst/jwst_nirspec_camera_0004.asdf', 'collimator': '/grp/crds/cache/references/jwst/jwst_nirspec_collimator_0004.asdf', 'disperser': '/grp/crds/cache/references/jwst/jwst_nirspec_disperser_0034.asdf', 'fore': '/grp/crds/cache/references/jwst/jwst_nirspec_fore_0028.asdf', 'fpa': '/grp/crds/cache/references/jwst/jwst_nirspec_fpa_0005.asdf', 'msa': '/grp/crds/cache/references/jwst/jwst_nirspec_msa_0005.asdf', 'ote': '/grp/crds/cache/references/jwst/jwst_nirspec_ote_0005.asdf', 'ifupost': None, 'ifufore': None, 'ifuslicer': None}
2022-12-02 14:55:05,060 - stpipe.AssignWcsStep - INFO - COMPLETED assign_wcs
2022-12-02 14:55:05,075 - stpipe.AssignWcsStep - INFO - Results used CRDS context: jwst_1019.pmap
2022-12-02 14:55:05,075 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep done
Running test for FS...
Information from the 'truth' (or comparison) file
Filename: /internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/fs_prism_nrs1_assign_wcs_truth.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 276 ()
1 SCI 1 ImageHDU 50 (2048, 2048) float32
2 ERR 1 ImageHDU 10 (2048, 2048) float32
3 DQ 1 ImageHDU 11 (2048, 2048) int32 (rescales to uint32)
4 VAR_POISSON 1 ImageHDU 9 (2048, 2048) float32
5 VAR_RNOISE 1 ImageHDU 9 (2048, 2048) float32
6 ASDF 1 BinTableHDU 11 1R x 1C [175586B]
None
Comparing to ST 'truth' file.
from assign_wcs file --> Detector: NRS1 Grating: PRISM Filter: CLEAR Lamp: LINE4
GWA_XTILT: 0.3367482721805573
GWA_YTILT: 0.0332140289247036
GWA_TTILT: 37.20692577377271
Working with slit: S200A1
Avalable frames: ['detector', 'sca', 'gwa', 'slit_frame', 'msa_frame', 'oteip', 'v2v3', 'v2v3vacorr', 'world']
Relative Wavelength Difference : mean = nan median = nan stdev = nan
Maximum RelativeWavelength Difference = nan
Minimum RelativeWavelength Difference = nan
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Wavelength Difference: FAILED
Relative Slit-Y Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeSlit-Y Difference = -0.000e+00
Minimum RelativeSlit-Y Difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Slit-Y Difference: PASSED
Relative MSA_X Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_X Difference = 0.000e+00
Minimum RelativeMSA_X Difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_X Difference: PASSED
Relative MSA_Y Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_Y Difference = -0.000e+00
Minimum RelativeMSA_Y Difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_Y Difference: PASSED
Relative V2 difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeV2 difference = 0.000e+00
Minimum RelativeV2 difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V2 difference: PASSED
Relative V3 difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeV3 difference = -0.000e+00
Minimum RelativeV3 difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V3 difference: PASSED
No output_directory was provided. Figures will be saved in current working directory:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/S200A1_NRS1_rel_wave_diffs.png
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
Working with slit: S200A2
Avalable frames: ['detector', 'sca', 'gwa', 'slit_frame', 'msa_frame', 'oteip', 'v2v3', 'v2v3vacorr', 'world']
Relative Wavelength Difference : mean = nan median = nan stdev = nan
Maximum RelativeWavelength Difference = nan
Minimum RelativeWavelength Difference = nan
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Wavelength Difference: FAILED
Relative Slit-Y Difference : mean = 3.040e-17 median = 0.000e+00 stdev = 1.176e-14
Maximum RelativeSlit-Y Difference = 4.281e-13
Minimum RelativeSlit-Y Difference = -1.115e-13
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Slit-Y Difference: PASSED
Relative MSA_X Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_X Difference = 0.000e+00
Minimum RelativeMSA_X Difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_X Difference: PASSED
Relative MSA_Y Difference : mean = -5.870e-17 median = 0.000e+00 stdev = 1.334e-15
Maximum RelativeMSA_Y Difference = 2.776e-14
Minimum RelativeMSA_Y Difference = -2.375e-14
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_Y Difference: PASSED
Relative V2 difference : mean = -4.989e-19 median = 0.000e+00 stdev = 1.376e-17
Maximum RelativeV2 difference = 3.608e-16
Minimum RelativeV2 difference = -3.604e-16
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V2 difference: PASSED
Relative V3 difference : mean = -5.667e-19 median = 0.000e+00 stdev = 1.287e-17
Maximum RelativeV3 difference = 2.322e-16
Minimum RelativeV3 difference = -2.320e-16
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V3 difference: PASSED
No output_directory was provided. Figures will be saved in current working directory:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/S200A2_NRS1_rel_wave_diffs.png
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
Working with slit: S400A1
Avalable frames: ['detector', 'sca', 'gwa', 'slit_frame', 'msa_frame', 'oteip', 'v2v3', 'v2v3vacorr', 'world']
Relative Wavelength Difference : mean = nan median = nan stdev = nan
Maximum RelativeWavelength Difference = nan
Minimum RelativeWavelength Difference = nan
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Wavelength Difference: FAILED
Relative Slit-Y Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeSlit-Y Difference = -0.000e+00
Minimum RelativeSlit-Y Difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Slit-Y Difference: PASSED
Relative MSA_X Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_X Difference = 0.000e+00
Minimum RelativeMSA_X Difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_X Difference: PASSED
Relative MSA_Y Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_Y Difference = -0.000e+00
Minimum RelativeMSA_Y Difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_Y Difference: PASSED
Relative V2 difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeV2 difference = 0.000e+00
Minimum RelativeV2 difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V2 difference: PASSED
Relative V3 difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeV3 difference = -0.000e+00
Minimum RelativeV3 difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V3 difference: PASSED
No output_directory was provided. Figures will be saved in current working directory:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/S400A1_NRS1_rel_wave_diffs.png
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
Working with slit: S1600A1
Avalable frames: ['detector', 'sca', 'gwa', 'slit_frame', 'msa_frame', 'oteip', 'v2v3', 'v2v3vacorr', 'world']
Relative Wavelength Difference : mean = nan median = nan stdev = nan
Maximum RelativeWavelength Difference = nan
Minimum RelativeWavelength Difference = nan
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Wavelength Difference: FAILED
Relative Slit-Y Difference : mean = -1.497e-16 median = 0.000e+00 stdev = 4.261e-15
Maximum RelativeSlit-Y Difference = -0.000e+00
Minimum RelativeSlit-Y Difference = -1.772e-13
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Slit-Y Difference: PASSED
Relative MSA_X Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_X Difference = 0.000e+00
Minimum RelativeMSA_X Difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_X Difference: PASSED
Relative MSA_Y Difference : mean = 2.335e-17 median = 0.000e+00 stdev = 6.645e-16
Maximum RelativeMSA_Y Difference = 2.768e-14
Minimum RelativeMSA_Y Difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_Y Difference: PASSED
Relative V2 difference : mean = -1.861e-19 median = 0.000e+00 stdev = 6.498e-18
Maximum RelativeV2 difference = 0.000e+00
Minimum RelativeV2 difference = -3.532e-16
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V2 difference: PASSED
Relative V3 difference : mean = -1.805e-19 median = 0.000e+00 stdev = 6.577e-18
Maximum RelativeV3 difference = -0.000e+00
Minimum RelativeV3 difference = -2.398e-16
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for V3 difference: PASSED
No output_directory was provided. Figures will be saved in current working directory:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/S1600A1_NRS1_rel_wave_diffs.png
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
* The test of V3 difference for slit S200A1 PASSED. * The test of V3 difference for slit S200A2 PASSED. * The test of V3 difference for slit S400A1 PASSED. * The test of V3 difference for slit S1600A1 PASSED. *** Final result for assign_wcs test will be reported as PASSED *** Did FS PRISM assign_wcs validation test passed? PASSED Testing files for detector: nrs2 Working with uncal_file: fs_prism_nrs2_uncal.fits Filter = CLEAR Running detector1 pipeline...
2022-12-02 14:55:27,532 - stpipe - INFO - PARS-DETECTOR1PIPELINE parameters found: /grp/crds/cache/references/jwst/jwst_nirspec_pars-detector1pipeline_0004.asdf
2022-12-02 14:55:27,552 - stpipe.Detector1Pipeline - INFO - Detector1Pipeline instance created.
2022-12-02 14:55:27,555 - stpipe.Detector1Pipeline.group_scale - INFO - GroupScaleStep instance created.
2022-12-02 14:55:27,557 - stpipe.Detector1Pipeline.dq_init - INFO - DQInitStep instance created.
2022-12-02 14:55:27,558 - stpipe.Detector1Pipeline.saturation - INFO - SaturationStep instance created.
2022-12-02 14:55:27,559 - stpipe.Detector1Pipeline.ipc - INFO - IPCStep instance created.
2022-12-02 14:55:27,560 - stpipe.Detector1Pipeline.superbias - INFO - SuperBiasStep instance created.
2022-12-02 14:55:27,562 - stpipe.Detector1Pipeline.refpix - INFO - RefPixStep instance created.
2022-12-02 14:55:27,563 - stpipe.Detector1Pipeline.rscd - INFO - RscdStep instance created.
2022-12-02 14:55:27,565 - stpipe.Detector1Pipeline.firstframe - INFO - FirstFrameStep instance created.
2022-12-02 14:55:27,566 - stpipe.Detector1Pipeline.lastframe - INFO - LastFrameStep instance created.
2022-12-02 14:55:27,567 - stpipe.Detector1Pipeline.linearity - INFO - LinearityStep instance created.
2022-12-02 14:55:27,568 - stpipe.Detector1Pipeline.dark_current - INFO - DarkCurrentStep instance created.
2022-12-02 14:55:27,569 - stpipe.Detector1Pipeline.reset - INFO - ResetStep instance created.
2022-12-02 14:55:27,570 - stpipe.Detector1Pipeline.persistence - INFO - PersistenceStep instance created.
2022-12-02 14:55:27,572 - stpipe.Detector1Pipeline.jump - INFO - JumpStep instance created.
2022-12-02 14:55:27,573 - stpipe.Detector1Pipeline.ramp_fit - INFO - RampFitStep instance created.
2022-12-02 14:55:27,575 - stpipe.Detector1Pipeline.gain_scale - INFO - GainScaleStep instance created.
2022-12-02 14:55:27,886 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline running with args ('/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/fs_prism_nrs2_uncal.fits',).
2022-12-02 14:55:27,896 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'save_calibrated_ramp': False, 'steps': {'group_scale': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'dq_init': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'saturation': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'n_pix_grow_sat': 1}, 'ipc': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': True, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'superbias': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'refpix': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'odd_even_columns': True, 'use_side_ref_pixels': True, 'side_smoothing_length': 11, 'side_gain': 1.0, 'odd_even_rows': True}, 'rscd': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'type': 'baseline'}, 'firstframe': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'lastframe': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'linearity': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'dark_current': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'dark_output': None}, 'reset': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}, 'persistence': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'input_trapsfilled': '', 'flag_pers_cutoff': 40.0, 'save_persistence': False, 'save_trapsfilled': True}, 'jump': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'rejection_threshold': 4.0, 'three_group_rejection_threshold': 6.0, 'four_group_rejection_threshold': 5.0, 'maximum_cores': 'none', 'flag_4_neighbors': True, 'max_jump_to_flag_neighbors': 1000.0, 'min_jump_to_flag_neighbors': 10.0, 'after_jump_flag_dn1': 0.0, 'after_jump_flag_time1': 0.0, 'after_jump_flag_dn2': 0.0, 'after_jump_flag_time2': 0.0, 'min_sat_area': 1.0, 'min_jump_area': 5.0, 'expand_factor': 2.0, 'use_ellipses': False, 'sat_required_snowball': True, 'expand_large_events': False}, 'ramp_fit': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'int_name': '', 'save_opt': False, 'opt_name': '', 'suppress_one_group': True, 'maximum_cores': 'none'}, 'gain_scale': {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': ''}}}
2022-12-02 14:55:28,073 - stpipe.Detector1Pipeline - INFO - Prefetching reference files for dataset: 'fs_prism_nrs2_uncal.fits' reftypes = ['dark', 'gain', 'linearity', 'mask', 'persat', 'readnoise', 'refpix', 'reset', 'rscd', 'saturation', 'superbias', 'trapdensity', 'trappars']
2022-12-02 14:55:28,083 - stpipe.Detector1Pipeline - INFO - Prefetch for DARK reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_dark_0087.fits'.
2022-12-02 14:55:28,085 - stpipe.Detector1Pipeline - INFO - Prefetch for GAIN reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_gain_0018.fits'.
2022-12-02 14:55:28,086 - stpipe.Detector1Pipeline - INFO - Prefetch for LINEARITY reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_linearity_0021.fits'.
2022-12-02 14:55:28,088 - stpipe.Detector1Pipeline - INFO - Prefetch for MASK reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_mask_0011.fits'.
2022-12-02 14:55:28,090 - stpipe.Detector1Pipeline - INFO - Prefetch for PERSAT reference file is 'N/A'.
2022-12-02 14:55:28,091 - stpipe.Detector1Pipeline - INFO - Prefetch for READNOISE reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0017.fits'.
2022-12-02 14:55:28,092 - stpipe.Detector1Pipeline - INFO - Prefetch for REFPIX reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_refpix_0020.fits'.
2022-12-02 14:55:28,094 - stpipe.Detector1Pipeline - INFO - Prefetch for RESET reference file is 'N/A'.
2022-12-02 14:55:28,095 - stpipe.Detector1Pipeline - INFO - Prefetch for RSCD reference file is 'N/A'.
2022-12-02 14:55:28,095 - stpipe.Detector1Pipeline - INFO - Prefetch for SATURATION reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_saturation_0021.fits'.
2022-12-02 14:55:28,097 - stpipe.Detector1Pipeline - INFO - Prefetch for SUPERBIAS reference file is '/grp/crds/cache/references/jwst/jwst_nirspec_superbias_0114.fits'.
2022-12-02 14:55:28,098 - stpipe.Detector1Pipeline - INFO - Prefetch for TRAPDENSITY reference file is 'N/A'.
2022-12-02 14:55:28,099 - stpipe.Detector1Pipeline - INFO - Prefetch for TRAPPARS reference file is 'N/A'.
2022-12-02 14:55:28,099 - stpipe.Detector1Pipeline - INFO - Starting calwebb_detector1 ...
2022-12-02 14:55:28,497 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:28,498 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:28,625 - stpipe.Detector1Pipeline.group_scale - INFO - NFRAMES and FRMDIVSR are equal; correction not needed
2022-12-02 14:55:28,626 - stpipe.Detector1Pipeline.group_scale - INFO - Step will be skipped
2022-12-02 14:55:28,629 - stpipe.Detector1Pipeline.group_scale - INFO - Step group_scale done
2022-12-02 14:55:28,767 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:28,769 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:28,793 - stpipe.Detector1Pipeline.dq_init - INFO - Using MASK reference file /grp/crds/cache/references/jwst/jwst_nirspec_mask_0011.fits
2022-12-02 14:55:29,114 - stpipe.Detector1Pipeline.dq_init - INFO - Step dq_init done
2022-12-02 14:55:29,253 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:29,255 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'n_pix_grow_sat': 1}
2022-12-02 14:55:29,280 - stpipe.Detector1Pipeline.saturation - INFO - Using SATURATION reference file /grp/crds/cache/references/jwst/jwst_nirspec_saturation_0021.fits
2022-12-02 14:55:30,293 - stpipe.Detector1Pipeline.saturation - INFO - Detected 40672 saturated pixels
2022-12-02 14:55:30,320 - stpipe.Detector1Pipeline.saturation - INFO - Detected 0 A/D floor pixels
2022-12-02 14:55:30,343 - stpipe.Detector1Pipeline.saturation - INFO - Step saturation done
2022-12-02 14:55:30,480 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:30,482 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': True, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:30,482 - stpipe.Detector1Pipeline.ipc - INFO - Step skipped.
2022-12-02 14:55:30,485 - stpipe.Detector1Pipeline.ipc - INFO - Step ipc done
2022-12-02 14:55:30,624 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:30,625 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:30,652 - stpipe.Detector1Pipeline.superbias - INFO - Using SUPERBIAS reference file /grp/crds/cache/references/jwst/jwst_nirspec_superbias_0114.fits
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stdatamodels/validate.py:38: ValidationWarning: While validating meta.exposure.readpatt the following error occurred:
'ALLIRS2' is not one of ['ACQ1', 'ACQ2', 'BRIGHT1', 'BRIGHT2', 'DEEP2', 'DEEP8', 'FAST', 'FASTGRPAVG', 'FASTGRPAVG8', 'FASTGRPAVG16', 'FASTGRPAVG32', 'FASTGRPAVG64', 'FASTR1', 'FASTR100', 'FGS', 'FGS60', 'FGS8370', 'FGS840', 'FGSRAPID', 'FINEGUIDE', 'ID', 'MEDIUM2', 'MEDIUM8', 'NIS', 'NISRAPID', 'NRS', 'NRSIRS2', 'NRSN16R4', 'NRSN32R8', 'NRSN8R2', 'NRSRAPID', 'NRSIRS2RAPID', 'NRSRAPIDD1', 'NRSRAPIDD2', 'NRSRAPIDD6', 'NRSSLOW', 'RAPID', 'SHALLOW2', 'SHALLOW4', 'SLOW', 'SLOWR1', 'TRACK', 'ANY', 'N/A']
Failed validating 'enum' in schema:
OrderedDict([('title', 'Readout pattern'),
('type', 'string'),
('enum',
['ACQ1',
'ACQ2',
'BRIGHT1',
'BRIGHT2',
'DEEP2',
'DEEP8',
'FAST',
'FASTGRPAVG',
'FASTGRPAVG8',
'FASTGRPAVG16',
'FASTGRPAVG32',
'FASTGRPAVG64',
'FASTR1',
'FASTR100',
'FGS',
'FGS60',
'FGS8370',
'FGS840',
'FGSRAPID',
'FINEGUIDE',
'ID',
'MEDIUM2',
'MEDIUM8',
'NIS',
'NISRAPID',
'NRS',
'NRSIRS2',
'NRSN16R4',
'NRSN32R8',
'NRSN8R2',
'NRSRAPID',
'NRSIRS2RAPID',
'NRSRAPIDD1',
'NRSRAPIDD2',
'NRSRAPIDD6',
'NRSSLOW',
'RAPID',
'SHALLOW2',
'SHALLOW4',
'SLOW',
'SLOWR1',
'TRACK',
'ANY',
'N/A']),
('fits_ke ...
warnings.warn(errmsg, ValidationWarning)
2022-12-02 14:55:31,020 - stpipe.Detector1Pipeline.superbias - INFO - Step superbias done
2022-12-02 14:55:31,159 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:31,161 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'odd_even_columns': True, 'use_side_ref_pixels': True, 'side_smoothing_length': 11, 'side_gain': 1.0, 'odd_even_rows': True}
2022-12-02 14:55:31,187 - stpipe.Detector1Pipeline.refpix - INFO - Using refpix reference file: /grp/crds/cache/references/jwst/jwst_nirspec_refpix_0020.fits
2022-12-02 14:55:31,623 - stpipe.Detector1Pipeline.refpix - INFO - Working on integration 1
2022-12-02 14:55:46,836 - stpipe.Detector1Pipeline.refpix - INFO - Step refpix done
2022-12-02 14:55:47,095 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:47,097 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:55:47,125 - stpipe.Detector1Pipeline.linearity - INFO - Using Linearity reference file /grp/crds/cache/references/jwst/jwst_nirspec_linearity_0021.fits
2022-12-02 14:55:47,881 - stpipe.Detector1Pipeline.linearity - INFO - Step linearity done
2022-12-02 14:55:48,024 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:48,025 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'dark_output': None}
2022-12-02 14:55:48,090 - stpipe.Detector1Pipeline.dark_current - INFO - Using DARK reference file /grp/crds/cache/references/jwst/jwst_nirspec_dark_0087.fits
2022-12-02 14:55:51,072 - stpipe.Detector1Pipeline.dark_current - INFO - Science data nints=1, ngroups=4, nframes=1, groupgap=0
2022-12-02 14:55:51,072 - stpipe.Detector1Pipeline.dark_current - INFO - Dark data nints=1, ngroups=65, nframes=1, groupgap=0
2022-12-02 14:55:51,658 - stpipe.Detector1Pipeline.dark_current - INFO - Step dark_current done
2022-12-02 14:55:51,826 - stpipe.Detector1Pipeline.jump - INFO - Step jump running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:51,828 - stpipe.Detector1Pipeline.jump - INFO - Step jump parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'rejection_threshold': 4.0, 'three_group_rejection_threshold': 6.0, 'four_group_rejection_threshold': 5.0, 'maximum_cores': 'none', 'flag_4_neighbors': True, 'max_jump_to_flag_neighbors': 1000.0, 'min_jump_to_flag_neighbors': 10.0, 'after_jump_flag_dn1': 0.0, 'after_jump_flag_time1': 0.0, 'after_jump_flag_dn2': 0.0, 'after_jump_flag_time2': 0.0, 'min_sat_area': 1.0, 'min_jump_area': 5.0, 'expand_factor': 2.0, 'use_ellipses': False, 'sat_required_snowball': True, 'expand_large_events': False}
2022-12-02 14:55:51,861 - stpipe.Detector1Pipeline.jump - INFO - CR rejection threshold = 4 sigma
2022-12-02 14:55:51,898 - stpipe.Detector1Pipeline.jump - INFO - Using GAIN reference file: /grp/crds/cache/references/jwst/jwst_nirspec_gain_0018.fits
2022-12-02 14:55:52,004 - stpipe.Detector1Pipeline.jump - INFO - Using READNOISE reference file: /grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0017.fits
2022-12-02 14:55:52,320 - stpipe.Detector1Pipeline.jump - INFO - Executing two-point difference method
2022-12-02 14:55:52,393 - stpipe.Detector1Pipeline.jump - INFO - Working on integration 1:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/twopoint_difference.py:154: RuntimeWarning: All-NaN slice encountered
max_ratio = np.nanmax(ratio, axis=0)
2022-12-02 14:55:53,938 - stpipe.Detector1Pipeline.jump - INFO - From highest outlier, two-point found 0 pixels with at least one CR from five or more groups.
2022-12-02 14:55:54,314 - stpipe.Detector1Pipeline.jump - INFO - Total elapsed time = 1.99234 sec
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:302: RuntimeWarning: invalid value encountered in divide
data /= gain_2d
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:303: RuntimeWarning: invalid value encountered in divide
err /= gain_2d
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/jump/jump.py:304: RuntimeWarning: invalid value encountered in divide
readnoise_2d /= gain_2d
2022-12-02 14:55:54,395 - stpipe.Detector1Pipeline.jump - INFO - The execution time in seconds: 2.533784
2022-12-02 14:55:54,402 - stpipe.Detector1Pipeline.jump - INFO - Step jump done
2022-12-02 14:55:54,684 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit running with args (<RampModel(1, 4, 3200, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:55:54,686 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_', 'int_name': '', 'save_opt': False, 'opt_name': '', 'suppress_one_group': True, 'maximum_cores': 'none'}
2022-12-02 14:55:54,812 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using READNOISE reference file: /grp/crds/cache/references/jwst/jwst_nirspec_readnoise_0017.fits
2022-12-02 14:55:54,813 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using GAIN reference file: /grp/crds/cache/references/jwst/jwst_nirspec_gain_0018.fits
2022-12-02 14:55:54,973 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using algorithm = ols
2022-12-02 14:55:54,974 - stpipe.Detector1Pipeline.ramp_fit - INFO - Using weighting = optimal
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/miniconda3/envs/jwst_validation_notebooks/lib/python3.9/site-packages/stcal/ramp_fitting/ols_fit.py:1089: RuntimeWarning: invalid value encountered in multiply
var_p4[num_int, :, :, :] *= (segs_4[num_int, :, :, :] > 0)
2022-12-02 14:56:09,603 - stpipe.Detector1Pipeline.ramp_fit - INFO - Number of groups per integration: 4
2022-12-02 14:56:09,604 - stpipe.Detector1Pipeline.ramp_fit - INFO - Number of integrations: 1
2022-12-02 14:56:09,799 - stpipe.Detector1Pipeline.ramp_fit - INFO - Step ramp_fit done
2022-12-02 14:56:09,964 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale running with args (<ImageModel(2048, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:56:09,966 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': 'gain_scale', 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:56:10,040 - stpipe.Detector1Pipeline.gain_scale - INFO - GAINFACT not found in gain reference file
2022-12-02 14:56:10,042 - stpipe.Detector1Pipeline.gain_scale - INFO - Step will be skipped
2022-12-02 14:56:10,047 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale done
2022-12-02 14:56:10,183 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale running with args (<CubeModel(1, 2048, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:56:10,185 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': 'gain_scaleints', 'search_output_file': True, 'input_dir': '/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_'}
2022-12-02 14:56:10,264 - stpipe.Detector1Pipeline.gain_scale - INFO - GAINFACT not found in gain reference file
2022-12-02 14:56:10,265 - stpipe.Detector1Pipeline.gain_scale - INFO - Step will be skipped
2022-12-02 14:56:10,270 - stpipe.Detector1Pipeline.gain_scale - INFO - Step gain_scale done
2022-12-02 14:56:10,271 - stpipe.Detector1Pipeline - INFO - ... ending calwebb_detector1
2022-12-02 14:56:10,271 - stpipe.Detector1Pipeline - INFO - Results used CRDS context: jwst_1019.pmap
2022-12-02 14:56:10,272 - stpipe.Detector1Pipeline - INFO - Step Detector1Pipeline done
2022-12-02 14:56:10,281 - stpipe.AssignWcsStep - INFO - AssignWcsStep instance created.
2022-12-02 14:56:10,414 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep running with args (<ImageModel(2048, 2048) from fs_prism_nrs2_uncal.fits>,).
2022-12-02 14:56:10,415 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep parameters are: {'pre_hooks': [], 'post_hooks': [], 'output_file': None, 'output_dir': None, 'output_ext': '.fits', 'output_use_model': False, 'output_use_index': True, 'save_results': False, 'skip': False, 'suffix': None, 'search_output_file': True, 'input_dir': '', 'sip_approx': True, 'sip_max_pix_error': 0.1, 'sip_degree': None, 'sip_max_inv_pix_error': 0.1, 'sip_inv_degree': None, 'sip_npoints': 12, 'slit_y_low': -0.55, 'slit_y_high': 0.55}
Running spec2 pipeline...
2022-12-02 14:56:10,589 - stpipe.AssignWcsStep - INFO - gwa_ytilt is 0.0332140289247036 deg
2022-12-02 14:56:10,590 - stpipe.AssignWcsStep - INFO - gwa_xtilt is 0.3367482721805573 deg
2022-12-02 14:56:10,591 - stpipe.AssignWcsStep - INFO - theta_y correction: -1.0907214098475986e-05 deg
2022-12-02 14:56:10,593 - stpipe.AssignWcsStep - INFO - theta_x correction: 0.0 deg
2022-12-02 14:56:10,798 - stpipe.AssignWcsStep - INFO - Removing slit S200A1 from the list of open slits because the WCS bounding_box is completely outside the detector.
2022-12-02 14:56:10,837 - stpipe.AssignWcsStep - INFO - Removing slit S200A2 from the list of open slits because the WCS bounding_box is completely outside the detector.
2022-12-02 14:56:10,876 - stpipe.AssignWcsStep - INFO - Removing slit S400A1 from the list of open slits because the WCS bounding_box is completely outside the detector.
2022-12-02 14:56:10,915 - stpipe.AssignWcsStep - INFO - Removing slit S1600A1 from the list of open slits because the WCS bounding_box is completely outside the detector.
2022-12-02 14:56:10,954 - stpipe.AssignWcsStep - INFO - Slits projected on detector NRS2: ['S200B1']
2022-12-02 14:56:10,955 - stpipe.AssignWcsStep - INFO - Computing WCS for 1 open slitlets
2022-12-02 14:56:10,998 - stpipe.AssignWcsStep - INFO - gwa_ytilt is 0.0332140289247036 deg
2022-12-02 14:56:10,999 - stpipe.AssignWcsStep - INFO - gwa_xtilt is 0.3367482721805573 deg
2022-12-02 14:56:11,001 - stpipe.AssignWcsStep - INFO - theta_y correction: -1.0907214098475986e-05 deg
2022-12-02 14:56:11,003 - stpipe.AssignWcsStep - INFO - theta_x correction: 0.0 deg
2022-12-02 14:56:11,017 - stpipe.AssignWcsStep - INFO - SPORDER= 0, wrange=[6e-07, 5.3e-06]
2022-12-02 14:56:11,171 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 1
2022-12-02 14:56:11,172 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 2
2022-12-02 14:56:11,172 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 3
2022-12-02 14:56:11,173 - stpipe.AssignWcsStep - INFO - There are 0 open slits in quadrant 4
2022-12-02 14:56:11,173 - stpipe.AssignWcsStep - INFO - There are 1 open slits in quadrant 5
2022-12-02 14:56:11,329 - stpipe.AssignWcsStep - INFO - Created a NIRSPEC nrs_fixedslit pipeline with references {'distortion': None, 'filteroffset': None, 'specwcs': None, 'regions': None, 'wavelengthrange': '/grp/crds/cache/references/jwst/jwst_nirspec_wavelengthrange_0004.asdf', 'camera': '/grp/crds/cache/references/jwst/jwst_nirspec_camera_0004.asdf', 'collimator': '/grp/crds/cache/references/jwst/jwst_nirspec_collimator_0004.asdf', 'disperser': '/grp/crds/cache/references/jwst/jwst_nirspec_disperser_0034.asdf', 'fore': '/grp/crds/cache/references/jwst/jwst_nirspec_fore_0028.asdf', 'fpa': '/grp/crds/cache/references/jwst/jwst_nirspec_fpa_0005.asdf', 'msa': '/grp/crds/cache/references/jwst/jwst_nirspec_msa_0005.asdf', 'ote': '/grp/crds/cache/references/jwst/jwst_nirspec_ote_0005.asdf', 'ifupost': None, 'ifufore': None, 'ifuslicer': None}
2022-12-02 14:56:11,504 - stpipe.AssignWcsStep - INFO - COMPLETED assign_wcs
2022-12-02 14:56:11,518 - stpipe.AssignWcsStep - INFO - Results used CRDS context: jwst_1019.pmap
2022-12-02 14:56:11,519 - stpipe.AssignWcsStep - INFO - Step AssignWcsStep done
Running test for FS...
Information from the 'truth' (or comparison) file
Filename: /internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/fs_prism_nrs2_assign_wcs_truth.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 276 ()
1 SCI 1 ImageHDU 50 (2048, 2048) float32
2 ERR 1 ImageHDU 10 (2048, 2048) float32
3 DQ 1 ImageHDU 11 (2048, 2048) int32 (rescales to uint32)
4 VAR_POISSON 1 ImageHDU 9 (2048, 2048) float32
5 VAR_RNOISE 1 ImageHDU 9 (2048, 2048) float32
6 ASDF 1 BinTableHDU 11 1R x 1C [95376B]
None
Comparing to ST 'truth' file.
from assign_wcs file --> Detector: NRS2 Grating: PRISM Filter: CLEAR Lamp: LINE4
GWA_XTILT: 0.3367482721805573
GWA_YTILT: 0.0332140289247036
GWA_TTILT: 37.20692577377271
Working with slit: S200B1
Avalable frames: ['detector', 'sca', 'gwa', 'slit_frame', 'msa_frame', 'oteip', 'v2v3', 'v2v3vacorr', 'world']
Relative Wavelength Difference : mean = nan median = nan stdev = nan
Maximum RelativeWavelength Difference = nan
Minimum RelativeWavelength Difference = nan
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Wavelength Difference: FAILED
Relative Slit-Y Difference : mean = -1.148e-15 median = 0.000e+00 stdev = 3.143e-14
Maximum RelativeSlit-Y Difference = 1.414e-13
Minimum RelativeSlit-Y Difference = -1.047e-12
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for Slit-Y Difference: PASSED
Relative MSA_X Difference : mean = 0.000e+00 median = 0.000e+00 stdev = 0.000e+00
Maximum RelativeMSA_X Difference = -0.000e+00
Minimum RelativeMSA_X Difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_X Difference: PASSED
Relative MSA_Y Difference : mean = -5.124e-17 median = 0.000e+00 stdev = 8.803e-16
Maximum RelativeMSA_Y Difference = 0.000e+00
Minimum RelativeMSA_Y Difference = -2.564e-14
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
* Result of the test for MSA_Y Difference: PASSED
Relative V2 difference : mean = 5.620e-19 median = 0.000e+00 stdev = 1.059e-17
Maximum RelativeV2 difference = 3.873e-16
Minimum RelativeV2 difference = 0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
Converting pipeline results to degrees to compare with truth file
Relative V2 difference : mean = -9.997e-01 median = -9.997e-01 stdev = 7.112e-17
Maximum RelativeV2 difference = -9.997e-01
Minimum RelativeV2 difference = -9.997e-01
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 100%
-> 3xtheshold = 100%
-> 5xtheshold = 100%
*** WARNING: More than 10% of pixels have a median value greater than 3xthreshold!
*** WARNING: More than 10% of pixels have a median value greater than 5xthreshold!
* Result of the test for V2 difference: FAILED
Relative V3 difference : mean = 7.493e-19 median = 0.000e+00 stdev = 1.454e-17
Maximum RelativeV3 difference = 4.681e-16
Minimum RelativeV3 difference = -0.000e+00
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 0%
-> 3xtheshold = 0%
-> 5xtheshold = 0%
Converting pipeline results to degrees to compare with truth file
Relative V3 difference : mean = -9.997e-01 median = -9.997e-01 stdev = 8.463e-17
Maximum RelativeV3 difference = -9.997e-01
Minimum RelativeV3 difference = -9.997e-01
Percentage of pixels where median of relative differences is greater than:
-> 1xtheshold = 100%
-> 3xtheshold = 100%
-> 5xtheshold = 100%
*** WARNING: More than 10% of pixels have a median value greater than 3xthreshold!
*** WARNING: More than 10% of pixels have a median value greater than 5xthreshold!
* Result of the test for V3 difference: FAILED
No output_directory was provided. Figures will be saved in current working directory:
/internal/data1/jenkins/workspace/Notebooks/jwst_validation_notebooks_spacetelescope/tmp/tmp9jjyk15_/S200B1_NRS2_rel_wave_diffs.png
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
No output_directory was provided. Figures will NOT be saved.
* The test of V3 difference for slit S200B1 FAILED. *** Final result for assign_wcs test will be reported as FAILED *** Did FS PRISM assign_wcs validation test passed? FAILED
# Summary of modes tested and their results
print('These are the final results of the tests: ')
for key, val in results_dict.items():
if not isinstance(val, str):
if val:
val = 'PASSED'
else:
val = 'FAILED'
print('{:<42} {:<8}'.format(key, val))
These are the final results of the tests: fs_prism_nrs1_uncal.fits PASSED fs_prism_nrs2_uncal.fits FAILED
Author: Maria A. Pena-Guerrero, Sr. Science Software Engineer, NIRSpec
Updated On: Sep/22/2022